<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>创建考试</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
    <style>
        body {
            background-color: #f8f9fa;
            margin: 0;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            font-family: Arial, sans-serif;
        }
        .container {
            max-width: 600px;
            width: 100%;
            background-color: white;
            padding: 30px;
            box-sizing: border-box;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        h1 {
            margin-bottom: 20px;
            font-weight: 300;
            color: #343a40;
            font-size: 2rem;
            text-align: center;
        }
        .form-group label {
            font-weight: 500;
            color: #495057;
            margin-bottom: 8px;
        }
        .form-control {
            font-size: 1rem;
            padding: 10px;
            border-radius: 4px;
            border: 1px solid #ced4da;
            margin-bottom: 15px;
        }
        .form-check-label {
            font-size: 0.9rem;
            color: #495057;
        }
        .btn-primary {
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 4px;
            padding: 12px;
            font-size: 1rem;
            width: 100%;
        }
        .btn-primary:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>创建考试</h1>
        <form method="POST">
            <div class="form-group">
                <label for="exam_title">考试标题</label>
                <input type="text" class="form-control" id="exam_title" name="exam_title" required>
            </div>
            <div class="form-group">
                <label for="exam_description">考试描述</label>
                <textarea class="form-control" id="exam_description" name="exam_description" rows="3" required></textarea>
            </div>
            <div class="form-group">
                <label for="class_name">班级名称</label>
                <input type="text" class="form-control" id="class_name" name="class_name" required>
            </div>
            <div class="form-group form-check">
                <input type="checkbox" class="form-check-input" id="publish" name="publish">
                <label class="form-check-label" for="publish">立即发布考试</label>
            </div>
            <button type="submit" class="btn btn-primary">创建考试</button>
        </form>
    </div>
</body>
</html>
